package com.enroll;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.enroll.service.StudentService;

@Component
@Scope("session")
public class StudentBean {
	
	@Autowired
	StudentService studenService;

	public void setStudenService(StudentService studenService) {
		this.studenService = studenService;
	}
	
	public String printStudentSize() {
		 
		return studenService.findAll().size() + "";
 
	}
	
}
